package com.letv.app.ljodfh.ui.contract;

import android.support.annotation.NonNull;

import com.letv.app.ljodfh.beans.TvLivingList;

/**
 * 频道契约类
 *
 * @author suming
 * @date 2020/4/15 9:31
 */
public interface ChannelContract {
    interface Model {
        void fetchData(@NonNull String url, @NonNull Presenter presenter);
    }

    interface View {
        void renderData(TvLivingList data);

        void onComplete();

        @NonNull
        String getUrl();

        void onError(String error);
    }

    interface Presenter {
        void onStart();

        void onComplete();

        void onError(String error);

        void getData(TvLivingList data);

        void fetchData();
    }
}
